package com.xbb.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xbb.entity.Teacher;
import com.xbb.entity.dto.TeacherDto;

public interface TeacherMapper {
	/**
	 * 获取所有教师信息,包含多条件分页查询
	 * @param teacherDto
	 * @return
	 */
	public List<TeacherDto> getTeas(TeacherDto teacherDto);
	
	/**
	 * 添加教师信息
	 * @param teacher
	 * @return
	 */
	public boolean addTea(Teacher teacher);
	
	/**
	 * 修改教师信息
	 * @param teacher
	 * @return
	 */
	public boolean updateTea(Teacher teacher);
	
	/**
	 * 删除教师信息
	 * @param tid
	 * @return
	 */
	public boolean delTea(int tid);
	
	
	public Teacher getTeaById(int id);
	
	public List<TeacherDto> queryByIds(@Param("ids")String[] ids);
}
